import { Module, forwardRef } from '@nestjs/common'
import { StorageModule } from '../storage/storage.module'
import { UploadController } from './upload.controller'
import { UploadService } from './upload.service'
import { AliyunOssModule } from '~/shared/aliyun-oss/aliyun-oss.module'
import { FastdfsModule } from '~/shared/fastdfs/fastdfs.module'

const services = [UploadService]

@Module({
	imports: [AliyunOssModule, forwardRef(() => StorageModule), FastdfsModule],
	controllers: [UploadController],
	providers: [...services],
	exports: [...services],
})
export class UploadModule { }
